﻿<%@ Page Title="Add an Album" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master"
    CodeBehind="AddAlbum.aspx.vb" Inherits="BeachesInGreeceComplete.AddAlbum" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .style1
        {
            font-size: xx-small;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        Create an album</h2>
    <table>
        <tr>
            <td>
                Album Name
            </td>
            <td>
                <asp:TextBox ID="tb_AlbumName" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="tb_AlbumName"
                    CssClass="field-validation-error" ErrorMessage="*" ValidationGroup="Add"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                Description
            </td>
            <td>
                <asp:TextBox ID="tb_Description" runat="server" TextMode="MultiLine"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                Album Cover<br />
                <em><span class="style1">(Empty for default Picture)</span></em></td>
            <td>
                <asp:FileUpload ID="f_Picture" runat="server" />
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="f_Picture"
                        CssClass="field-validation-error" ErrorMessage="Please Upload a valid Picture format"
                        ValidationExpression="^.*\.(jpg|JPG|JPEG|jpeg|gif|GIF|png|PNG|bmp|BMP)$"></asp:RegularExpressionValidator>
            </td>
        </tr>
    </table>
    <asp:Button ID="btn_AddAlbum" runat="server" Text="Add Album" CssClass="m-btn blue"  ValidationGroup="Add"/>
    <asp:Button ID="btn_Cancel" runat="server" Text="Cancel" CssClass="m-btn blue" />
</asp:Content>
